package design_mode.proxy.static_proxy;

import design_mode.proxy.IUSBShop;

public class USBProxy implements IUSBShop {
    private IUSBShop mIUSBShop;

    public USBProxy(IUSBShop iusbShop){
        this.mIUSBShop = iusbShop;
    }
    @Override
    public int sellUSB() {
        int price = mIUSBShop.sellUSB();//厂家建议零售价
        System.out.println("厂家建议的零售价是：" + price);
        //功能增强，商家的定价
        int finalPrice = price + 40;
        return finalPrice;
    }
}
